//==============================================================================
// torch_anim.txt
//==============================================================================

import Construction_defines_anim.txt

//==============================================================================
define empower
{
   SetSelector
   {
      EmpowerLogic
      SetSelector
      {
         set hotspot
         {
            version
            {
               Visualnone Jimmy
            }
         }
      }
      SetSelector
      {
         set hotspot
         {
            version
            {
               Visualparticle SFX E Pharaoh Empower Small
            }
         }
      }
   }
}
//==============================================================================
define Dust
{
   set hotspot
   {
      version
      {
         Visualparticle SFX A Building DustA
      }
   }  
}


//==============================================================================
anim Idle
{
   SetSelector
   {
        CultureLogic Egyptian/Chinese
	SetSelector
	{
		TechLogic none/age 2/age 3/age 4
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building E Lumbercamp Age1
					connect ATTACHPOINT empower hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building E Lumbercamp Age2
					connect ATTACHPOINT empower hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building E Lumbercamp Age3
					connect ATTACHPOINT empower hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building E Lumbercamp Age4
					connect ATTACHPOINT empower hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
        }
	SetSelector
	{
		TechLogic none/age 2/age 3/age 4
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building C Lumbercamp
                    connect ATTACHPOINT examinationSFX hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building C Lumbercamp
                    connect ATTACHPOINT examinationSFX hotspot
                    ReplaceTexture building c roofage1/building c roofage2
                    ReplaceTexture building c wallsage1/building c wallsage2
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building C Lumbercamp
                    connect ATTACHPOINT examinationSFX hotspot
                    ReplaceTexture building c roofage1/building c roofage3
                    ReplaceTexture building c wallsage1/building c wallsage3
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building C Lumbercamp
                    connect ATTACHPOINT examinationSFX hotspot
                    ReplaceTexture building c roofage1/building c roofage4
                    ReplaceTexture building c wallsage1/building c wallsage4
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
          }
     }
}

//==============================================================================
anim Death
{
   SetSelector
   {
         CultureLogic Egyptian/Chinese
         SetSelector
         {
		TechLogic none/age 2/age 3/age 4
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building E Lumbercamp Age1_Death
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building E Lumbercamp Age2_Death
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building E Lumbercamp Age3_Death
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building E Lumbercamp Age4_Death
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
	}
         SetSelector
         {
		TechLogic none/age 2/age 3/age 4
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building C Lumbercamp_Death
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building C Lumbercamp_Death
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
                    ReplaceTexture building c roofage1/building c roofage2
                    ReplaceTexture building c wallsage1/building c wallsage2
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building C Lumbercamp_Death
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
                    ReplaceTexture building c roofage1/building c roofage3
                    ReplaceTexture building c wallsage1/building c wallsage3
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building C Lumbercamp_Death
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
                    ReplaceTexture building c roofage1/building c roofage4
                    ReplaceTexture building c wallsage1/building c wallsage4
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
	}
    }
}
